package com.wjs.service.impl;

import com.wjs.dao.UsersMapper;
import com.wjs.entity.User;
import com.wjs.service.UserService;
import com.wjs.util.MybatisUtils;
import org.apache.ibatis.session.SqlSession;

public class UserServiceImpl implements UserService {
    SqlSession session= MybatisUtils.getSession();
    UsersMapper um=session.getMapper(UsersMapper.class);
    @Override
    public User selectByNameAndPwd(User user) {
        return um.selectByNameAndPwd(user);
    }
}
